package cn.stylefeng.guns.modular.transport.mapper;

import cn.stylefeng.guns.modular.transport.entity.TDispatchDriverEval;
import cn.stylefeng.guns.modular.transport.model.params.TDispatchDriverEvalParam;
import cn.stylefeng.guns.modular.transport.model.result.TDispatchDriverEvalResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 司机评价 Mapper 接口
 * </p>
 *
 * @author zhangzh
 * @since 2025-04-11
 */
public interface TDispatchDriverEvalMapper extends BaseMapper<TDispatchDriverEval> {

    /**
     * 获取列表
     *
     * @author zhangzh
     * @Date 2025-04-11
     */
    List<TDispatchDriverEvalResult> customList(@Param("paramCondition") TDispatchDriverEvalParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhangzh
     * @Date 2025-04-11
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TDispatchDriverEvalParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhangzh
     * @Date 2025-04-11
     */
    Page<TDispatchDriverEvalResult> customPageList(@Param("page") Page page, @Param("paramCondition") TDispatchDriverEvalParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhangzh
     * @Date 2025-04-11
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TDispatchDriverEvalParam paramCondition);

    /**
     *
     * @param paramCondition
     * @return
     */
    TDispatchDriverEvalResult findBySpec(@Param("paramCondition") TDispatchDriverEvalParam paramCondition);
}
